//
//  AppDelegate.m
//  MPlayer
//
//  Created by 王俊 on 15/12/14.
//  Copyright © 2015年 王俊. All rights reserved.
//

#import "AppDelegate.h"
#import "CenterViewController.h"
#import "RightViewController.h"
#import "MMDrawerController.h"
#import "UIViewController+MMDrawerController.h"


@interface AppDelegate ()

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {


    CenterViewController  *centerController = [[CenterViewController alloc]init];
    RightViewController   *rightController = [[RightViewController alloc]init];
    MMDrawerController *drawerController = [[MMDrawerController alloc]initWithCenterViewController:centerController rightDrawerViewController:rightController];
    [drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
    [drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
    drawerController.maximumRightDrawerWidth = 120;
    [drawerController setShowsShadow:true];
    self.window.rootViewController = drawerController;
    [self.window makeKeyAndVisible];
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{

}

- (void)applicationDidEnterBackground:(UIApplication *)application
{

}

- (void)applicationWillEnterForeground:(UIApplication *)application
{

}

- (void)applicationDidBecomeActive:(UIApplication *)application
{

}

- (void)applicationWillTerminate:(UIApplication *)application
{

}

@end
